﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BitcoinLibrary
{
    public class UnknownMessage : Message
    {
        private const long serialVersionUID = 3614705938207918775L;
        private String name;

        public UnknownMessage(NetworkParameters param, String name, byte[] payloadBytes)
            : base(param, payloadBytes, 0)
        {
            this.name = name;
        }

        public override string ToString()
        {
            return "Unknown message [" + name + "]: " + (bytes == null ? "" : Utils.bytesToHexString(bytes));
        }

        public override void parse()
        {
        }
    }
}
